package com.dylan.test;

import com.dylan.link.LinkBitSum;
import com.dylan.link.ListNode;

/**
 * @author dylan1009
 */
public class LinkBitTester {

    public static void main(String[] args) {
        ListNode l1 = new ListNode(2);
        l1.next = new ListNode(4);
        l1.next.next = new ListNode(3);

        ListNode l2 = new ListNode(5);
        l2.next = new ListNode(6);
        l2.next.next = new ListNode(7);

        LinkBitSum linkBitSum = new LinkBitSum();
        ListNode result = linkBitSum.addTwoNumbers(l1,l2);
        System.out.println(result.val);

        for (ListNode curr = result; curr.next!=null ; curr=curr.next){
            System.out.println(curr.next.val);
        }

    }
}
